﻿@inherits Blazorise.BaseIcon
@if ( !HasCustomRegistration )
{
    <i class="@ClassMapper.Class">
        @if ( IconProvider.IconNameAsContent && Name != null )
        {
            if ( Name is IconName )
            {
                @IconProvider.Get( (IconName)Name );
            }
            else if ( Name is string )
            {
                @IconProvider.Get( (string)Name );
            }
        }
    </i>
}
else
{
    @RenderCustomComponent()
}